package com.optimatch.ui.model.beans;

public class Equipe {

	private String name;
	private Ville ville;
	
	public Equipe(String name, Ville ville) {
		this.name = name;
		this.ville = ville;
	}
	
	public Equipe(String name, String nomVille) {
		this.name = name;
		this.ville = new Ville(nomVille,0d,0d);
	}
	
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Ville getVille() {
		return ville;
	}

	public void setVille(Ville ville) {
		this.ville = ville;
	}
	
	public String toString() {
		return this.name + " (" + this.ville + ")";
	}

}
